class HuskGunNewPickup extends KFWeaponPickup;

var float FireCharge;

simulated function Tick(float DT)
{
	Super.Tick(DT);
	FireCharge = FMin(100.0,FireCharge + class'HuskGunNew'.default.FireChargeRegenRate * 0.33 * DT);
}

function InitDroppedPickupFor(Inventory Inv)
{
	FireCharge = HuskGunNew(Inv).FireCharge;
	Super.InitDroppedPickupFor(Inv);
}

function inventory SpawnCopy( pawn Other )
{
	local inventory Copy;

	Copy = Super.SpawnCopy(Other);
	
	HuskGunNew(Copy).FireCharge = FireCharge;

	return Copy;
}

defaultproperties
{
	 FireCharge=100.0
     Weight=6.000000
     cost=1000
     AmmoCost=0
     BuyClipSize=100
     PowerValue=85
     SpeedValue=25
     RangeValue=75
     Description="A fireball cannon ripped from the arm of a dead Husk. Does more damage when charged up."
     ItemName="Husk Fireball Launcher"
     ItemShortName="Husk Gun"
     AmmoItemName="Husk Gun Fuel"
     AmmoMesh=StaticMesh'KillingFloorStatics.FT_AmmoMesh'
     CorrespondingPerkIndex=5
     EquipmentCategoryID=3
     MaxDesireability=0.790000
     InventoryType=Class'HuskgunNew'
     PickupMessage="You got the Husk Fireball Launcher."
     PickupSound=Sound'KF_HuskGunSnd.foley.Husk_Pickup'
     PickupForce="AssaultRiflePickup"
     StaticMesh=StaticMesh'KF_pickups3_Trip.Rifles.HuskGun_Pickup'
     CollisionRadius=25.000000
     CollisionHeight=10.000000
}
